﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../PUB/Default.Master" CodeBehind="ZXDY(废弃).aspx.cs" Inherits="YTBZ.Z11_XD.ZXDY" %>

<%@ Register Src="../PUB/PagerNavigation.ascx" TagName="PagerNavigation" TagPrefix="ucPage" %>

<asp:Content ID="Content_FromMaster" ContentPlaceHolderID="MainContent" runat="server">
    <!-------------------------------------------------------------------------------------------------->
    <table cellspacing="3" cellpadding="0" width="100%" align="center" border="0" class="TableStyle">
        <tr>
            <td class="ItemTitle" colspan="99" height="25" id="TD_TITLE" runat="server">模块标题</td>
        </tr>
        <tr>
            <td class="TdTitleR">订单号：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtQOrderBH" runat="server" MaxLength="32" /></td>
            <td class="TdTitleR">批次号：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtQPCNum" runat="server" MaxLength="10" /></td>
            <td class="TdTitleR">创建时间：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtQInTimeB" runat="server" SkinID="txtDateSkin" /></td>
            <td class="TdTitleR">到：</td>
            <td class="TdContentL">
                <asp:TextBox ID="txtQInTimeE" runat="server" SkinID="txtDateSkin" /></td>
            <td class="TdContentL" style="width: 100%;" >
                <asp:Button ID="btnQuery" runat="server" CommandName="查询" SkinID="btnCXSkin" OnClick="btn_Click" />
            </td>
        </tr>
       
    </table>
    <!-------------------------------------------------------------------------------------------------->

    <!-------------------------------------------------------------------------------------------------->
    <table cellspacing="0" border="0" style="border-style: none; width: 100%;">
        <tr>
            <td class="ItemTitle" colspan="99" height="25" id="TD1" runat="server">导入包装信息</td>
        </tr>
        <tr>
            <td class="TdTitleR">导入文件：</td>
            <td class="TdContentL">
                <asp:FileUpload ID="fileUp" runat="server" /></td>
                
            <td class="TdContentL" style="width: 100%;" >
                <asp:Button ID="btnImport" runat="server" Text="导入" CommandName="导入" OnClick="btn_Click" />
                
                <a href="../PUB/FILE/MODE/MODE_REPORTORDER.csv" target="_blank" >下载导入模板 </a>
                &nbsp;&nbsp;<span style="color:red;"> 注：一次导一个订单批次，即每次导入时订单号和批次号是相同的！</span>
            </td>
                
        </tr>
        <tr>
            <td colspan="99">
                <asp:Label ID="lblMSGINFO" runat="server" style="color:red" />
            </td>
        </tr>
       
    </table>
    <div id="tabShow" runat="server" style="overflow: auto; width: 100%; height: 560px;">
        <table cellspacing="0" border="0" style="border-style: none;">
             <tr>
                 <td style="width:100%;" colspan="99">
                    
                   
                </td>
            </tr>
            <tr>
                <td>
                    <ucPage:PagerNavigation ID="pgShow" runat="server" />
                </td>
                
            </tr>
        </table>
        
        <asp:GridView ID="dgList" runat="server" Style="width: 100%" AutoGenerateColumns="False" DataKeyNames="KEYID,OrderBH,PCNum,ZXBH,ZXCC"
            OnRowCommand="dgList_RowCommand" OnRowDataBound="dgList_RowDataBound" OnSorting="dgList_Sorting" AllowSorting="true">
            <HeaderStyle CssClass="Gv_HeaderStyle" />
            <RowStyle CssClass="Gv_RowStyle" />
            <AlternatingRowStyle CssClass="Gv_AlternateStyle" />
            <Columns>
                <asp:BoundField DataField="PAGEROWNUM" HeaderText="序" ItemStyle-HorizontalAlign="Center" />
                 <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="90px">
                    <ItemTemplate>
                         <asp:LinkButton ID="lbtnPrint1" Text="按订单批次打印" runat="server" CommandArgument='<%#Eval("KEYID")%>' CommandName="批量打印" /> 
                         <asp:LinkButton ID="lbtnPrint2" Text="单箱打印" runat="server" CommandArgument='<%#Eval("KEYID")%>' CommandName="打印" /> 
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="OrderBH" HeaderText="订单号" SortExpression="OrderBH" ItemStyle-HorizontalAlign="Center" />     
                <asp:BoundField DataField="PCNum" HeaderText="批次号" SortExpression="PCNum" ItemStyle-HorizontalAlign="Center" />     
                <asp:BoundField DataField="ZXBH" HeaderText="包装箱号" SortExpression="ZXBH" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="WLBH" HeaderText="零部件图号" SortExpression="WLBH" ItemStyle-HorizontalAlign="Center" />
                 <asp:BoundField DataField="WLZWMC" HeaderText="零件中文名称" SortExpression="WLZWMC" ItemStyle-HorizontalAlign="Left" />
                <asp:BoundField DataField="WLEWMC" HeaderText="零件英文名称" SortExpression="WLEWMC" ItemStyle-HorizontalAlign="Left" />
                <asp:BoundField DataField="WLZXSL" HeaderText="包装数量" SortExpression="WLZXSL" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="ZXCC" HeaderText="包装箱尺寸" SortExpression="ZXCC" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="CX" HeaderText="车型" SortExpression="CX" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="InTime" HeaderText="创建时间" SortExpression="InTime" ItemStyle-HorizontalAlign="Center" />                
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>



